package com.mmd.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * table --> mmd_postcode
 * remarks --> 邮编
 * columns --> postcode,areaId,areaName,parentAreaId,createTime,updateTime
 */
@ApiModel(value = "mmd_postcode",description = "邮编")
public class MmdPostcode implements Serializable {
    /**
     * postcode
     * 邮编
     */
    @ApiModelProperty(value="postcode",name="邮编")
    private String postcode;

    /**
     * areaId
     * 区域ID
     */
    @ApiModelProperty(value="areaId",name="区域ID")
    private Long areaId;

    /**
     * areaName
     * 区域名称
     */
    @ApiModelProperty(value="areaName",name="区域名称")
    private String areaName;

    /**
     * parentAreaId
     * 父区域id
     */
    @ApiModelProperty(value="parentAreaId",name="父区域id")
    private Long parentAreaId;

    /**
     * createTime
     * 
     */
    @ApiModelProperty(value="createTime",name="")
    private Date createTime;

    /**
     * updateTime
     * 
     */
    @ApiModelProperty(value="updateTime",name="")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode == null ? null : postcode.trim();
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName == null ? null : areaName.trim();
    }

    public Long getParentAreaId() {
        return parentAreaId;
    }

    public void setParentAreaId(Long parentAreaId) {
        this.parentAreaId = parentAreaId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append(", postcode=").append(postcode);
        sb.append(", areaId=").append(areaId);
        sb.append(", areaName=").append(areaName);
        sb.append(", parentAreaId=").append(parentAreaId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}